package com.java.inheritstudy;

/**
 * @author Lenl
 * @create 2021-05-29 17:52
 */
public class Person {
    String name;
    int age;


    public Person(){

    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println("吃饭");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
    private void study(){
        System.out.println("学习");
    }
}
